package com.ruoyi.bussiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.MgtQualityLineMapper;
import com.ruoyi.bussiness.domain.MgtQualityLine;
import com.ruoyi.bussiness.service.IMgtQualityLineService;
import com.ruoyi.common.core.text.Convert;

/**
 * 精品线路Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class MgtQualityLineServiceImpl implements IMgtQualityLineService 
{
    @Autowired
    private MgtQualityLineMapper mgtQualityLineMapper;

    /**
     * 查询精品线路
     * 
     * @param id 精品线路主键
     * @return 精品线路
     */
    @Override
    public MgtQualityLine selectMgtQualityLineById(Long id)
    {
        return mgtQualityLineMapper.selectMgtQualityLineById(id);
    }

    /**
     * 查询精品线路列表
     * 
     * @param mgtQualityLine 精品线路
     * @return 精品线路
     */
    @Override
    public List<MgtQualityLine> selectMgtQualityLineList(MgtQualityLine mgtQualityLine)
    {
        return mgtQualityLineMapper.selectMgtQualityLineList(mgtQualityLine);
    }

    /**
     * 新增精品线路
     * 
     * @param mgtQualityLine 精品线路
     * @return 结果
     */
    @Override
    public int insertMgtQualityLine(MgtQualityLine mgtQualityLine)
    {
        return mgtQualityLineMapper.insertMgtQualityLine(mgtQualityLine);
    }

    /**
     * 修改精品线路
     * 
     * @param mgtQualityLine 精品线路
     * @return 结果
     */
    @Override
    public int updateMgtQualityLine(MgtQualityLine mgtQualityLine)
    {
        return mgtQualityLineMapper.updateMgtQualityLine(mgtQualityLine);
    }

    /**
     * 批量删除精品线路
     * 
     * @param ids 需要删除的精品线路主键
     * @return 结果
     */
    @Override
    public int deleteMgtQualityLineByIds(String ids)
    {
        return mgtQualityLineMapper.deleteMgtQualityLineByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除精品线路信息
     * 
     * @param id 精品线路主键
     * @return 结果
     */
    @Override
    public int deleteMgtQualityLineById(Long id)
    {
        return mgtQualityLineMapper.deleteMgtQualityLineById(id);
    }
}
